package com.lxk.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 用户
 * </p>
 *
 * @author JohnSoybean
 * @since 2020-07-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Users implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户id
     */
    @TableId(value = "user_id", type = IdType.AUTO)
    private Long userId;

    /**
     * 昵称
     */
    private String username;

    /**
     * 头像
     */
    private String headimg;

    /**
     * 手机号
     */
    private String phone;

    /**
     * 性别
     */
    private String sex;

    /**
     * unionid
     */
    private String unionid;

    /**
     * 小程序的openid
     */
    private String openid;

    /**
     * H5的openid
     */
    private String openidWeb;

    /**
     * 余额
     */
    private Integer wallet;

    /**
     * 二维码
     */
    private String qrcode;

    /**
     * uuid 验证二维码
     */
    private String uuid;

    /**
     * 0正常 1冻结
     */
    private Integer block;

    /**
     * session_key
     */
    private String sessionKey;

    /**
     * 乐观锁
     */
    @Version
    private Integer version;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    /**
     * 逻辑删除
     */
    @TableLogic
    private Integer deleted;


}
